<template>
  <div id="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view></router-view>
    </template>
    <template v-else>
      <BasicLayout/>
    </template>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
import BasicLayout from './layouts/BasicLayout.vue';
import { useRoute } from 'vue-router';

const route=useRoute();
/**
 * 全局初始化
 */
const doInit=()=>{
  console.log("hello 欢迎来到OJ判题系统")
}
onMounted(()=>{
  doInit();
})


</script>

<style>
</style>
